﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="BlockDetails.aspx.cs" Inherits="WebFormSingTowerMall.BlockDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 40px;
        }
        .style2
        {
            height: 40px;
        }
        .style3
        {
            height: 40px;
        }
        .style4
        {
            height: 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <asp:Label ID="lblStatusMessage" runat="server" ForeColor="#0066FF" Font-Bold="true" Font-Size="Large"></asp:Label>
      <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
      <br />
Select your Level&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:DropDownList ID="DropDownList1" runat="server" Height="23px" 
        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="120px" AutoPostBack="true">
                  </asp:DropDownList> 
      <asp:CustomValidator ID="CustomValidator2" runat="server" 
          ErrorMessage="Please Select the level" ForeColor="Red" 
          onservervalidate="CustomValidator2_ServerValidate">*</asp:CustomValidator>
      <br />
                  <br />

Upload your Level Map (Map image dimension should be 400 * 320 pixels)
<br /><br />
<table>
<tr>
<td >
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Upload Map" 
        onclick="Button1_Click" CausesValidation="false" />
   </td> 
    </tr>
<tr>
<td>
<table>
<tr>
<td></td>
   <td> <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/XAxis.jpg" /></td>
 </tr>
 <tr>
   <td> <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Yaxis.jpg" /> </td>
   <td> <asp:ImageMap ID="ImageMap1" runat="server" Width="400" Height="320" ImageUrl="~/Images/NoImage.jpg">
    </asp:ImageMap><br /><br /> </td>
</tr>

</table>
</td>
<td>
<table>
      <tr>
      <td colspan="2"><h2>Add/Edit Block</h2></td>
      </tr>
      <tr>
      <td class="style1">Block ID </td>
      <td class="style1"><asp:TextBox ID="txtBlockID" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
              Display="Dynamic" ErrorMessage="Block ID is Mandatory" 
              ControlToValidate="txtBlockID" ForeColor="Red">*</asp:RequiredFieldValidator>
          </td>
      </tr>
      <tr>
      <td class="style4">Block Type </td>
      <td class="style4"><asp:DropDownList ID="dboxBlockType" runat="server">
          </asp:DropDownList>
          <asp:CustomValidator ID="CustomValidator1" runat="server" 
              Display="Dynamic" ErrorMessage="Please select the Block Type" 
              ForeColor="Red" onservervalidate="CustomValidator1_ServerValidate">*</asp:CustomValidator>
          </td>
      </tr>
      <tr>
      <td class="style2">Block Location </td>
      <td class="style2"><asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
              ControlToValidate="txtDimension" Display="Dynamic" 
              ErrorMessage="Block Location is Mandatory" ForeColor="Red">*</asp:RequiredFieldValidator>
          </td>
      </tr>
      <tr>
      <td class="style3">Dimension </td>
      <td class="style3"><asp:TextBox ID="txtDimension" runat="server"></asp:TextBox></td>
      </tr>
      <tr>
         <td  colspan="2">
             <asp:Button ID="Button2" runat="server" Text="Add/Update Block" 
                 onclick="Button2_Click" /> </td> 
      </tr>

    </table>
</td>
</tr>
</table>
<table>
<tr>
<td style="width:70%"><h2>Blocks Available</h2><br /><br /></td>
</tr>
<tr>
<td>
    <asp:Table ID="Table1" runat="server">
    </asp:Table>
    </td>  
</tr>
</table>
</asp:Content>
